lcDrwAddBlockCopy Home

Adds a new block into a drawing as a copy of exist block. The source and destination blocks must be owned by the same drawing.

 HANDLE lcDrwAddBlockCopy (
   HANDLE hDrw,
   LPCWSTR szName,
   HANDLE hSrcBlock
 );

Parameters
hDrw
  Handle to a drawing object.
szName
  Block name. Must be different from exist blocks.
hSrcBlock
  Handle to a block which data will be copied to created block.

Return Value

  Handle to a new block.
If the function fails, the return value is NULL.